package com.qianfeng.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author admin
 * @date 2021/9/23 9:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderTable {
    @ExcelProperty("编号")
    private Integer  orderId;//订单号
    private Integer orderUserId;//订单人id
    private Integer paymentId;//支付明细表
    private Integer orderSumPrice;//订单总金额
    private Integer orderStatus;
    //订单状态:1表示订单“待审核”：表示您的订单等待审核中。2表示订单“已确认”：表示您的订单已审核通过。3表示订单“备货中”：表示您的订单已打印，我们正在为您备货。4表示订单“已发货”：表示您的订单已出仓库，您可在网上跟踪配送情况。5表示订单“已完成”：表示您的订单已完成签收。值只能取1-5。
    @ExcelProperty("")
    private String orderAddress;//订单发货地址
    @DateTimeFormat(pattern = "yyyy-MM-dd")//格式化日期
    private Date orderDate;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderUserId() {
        return orderUserId;
    }

    public void setOrderUserId(Integer orderUserId) {
        this.orderUserId = orderUserId;
    }

    public Integer getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(Integer paymentId) {
        this.paymentId = paymentId;
    }

    public Integer getOrderSumPrice() {
        return orderSumPrice;
    }

    public void setOrderSumPrice(Integer orderSumPrice) {
        this.orderSumPrice = orderSumPrice;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }
}
